package com.hlz.flink.chapter06;

/**
 * @author Hongliang Zhu
 * @create 2023-06-14 23:36
 */
public class Stock {
    private String id;

    private double price;

    private String stockName;

    private long timeStamp;

    public Stock() {
    }

    public Stock(String id, double price, String stockName, long timeStamp) {
        this.id = id;
        this.price = price;
        this.stockName = stockName;
        this.timeStamp = timeStamp;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getStockName() {
        return stockName;
    }

    public void setStockName(String stockName) {
        this.stockName = stockName;
    }

    public long getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(long timeStamp) {
        this.timeStamp = timeStamp;
    }


    @Override
    public String toString() {
        return "Stock{" +
                "id='" + id + '\'' +
                ", price=" + price +
                ", stockName='" + stockName + '\'' +
                ", timeStamp=" + timeStamp +
                '}';
    }
}
